package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.entity.Dish;

/**
 * 菜品口味业务层
 *
 * @author hua
 * @since 2022/11/3 22:20
 */
public interface IDishService extends IService <Dish> {
    void saveWithFlavor(DishDto dishDto);

    /**
     * 获取菜品及菜品口味
     * @param id
     */
    DishDto getBYIdWithFlavor(long id);

    /**
     * 更新数据
     * @param dish
     */
    void updateWithFlavor(DishDto dish);
}
